package cn.iocoder.an.module.mold.controller.admin.info.vo;

import cn.iocoder.an.module.mold.dal.dataobject.category.CategoryDO;
import cn.iocoder.an.module.mold.dal.dataobject.linestopcategory.LinestopCategoryDO;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.VO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - 模具信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class InfoRespVO   implements VO {

    @Schema(description = "模具id", requiredMode = Schema.RequiredMode.REQUIRED, example = "2472")
    @ExcelProperty("模具id")
    private Long id;

    @Schema(description = "图号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("图号")
    private String drawingNo;

    @Schema(description = "编码")
    @ExcelProperty("编码")
    private String code;

    @Schema(description = "类型id", requiredMode = Schema.RequiredMode.REQUIRED, example = "10502")
    @ExcelProperty("类型id")
    @Trans(type = TransType.SIMPLE ,target = CategoryDO.class, fields = "name", ref = "categoryName")
    private Long categoryId;

    @Schema(description = "停线类型名称")
    @ExcelProperty("类型名称")
    private String categoryName;

    @Schema(description = "客户名")
    @ExcelProperty("客户名")
    private String customer;

    @Schema(description = "描述", example = "随便")
    @ExcelProperty("描述")
    private String description;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
